package com.lx.mybatis.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.List;

@Data // setter getter toString hashcode equals 自动生成
@AllArgsConstructor //全参数构造函数
@NoArgsConstructor //无参数
public class Bill {
    private Integer id;

    private String type;

    private String custom;

    private Integer sums;

    private Timestamp time;

    private Integer uid;

    //一对一
    private User user;
    //一对多
    private List<BillItem> items;

}
